package cn.itsource.ymcc.dto;

import cn.itsource.ymcc.constant.ErrorConstantCode;
import cn.itsource.ymcc.util.AssertUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserRegisterDTO {


    private String imageCode;   // : 图形验证码""
    @NotEmpty
    @Pattern(regexp = AssertUtil.PHONE_REG,message = "手机格式不正确")
    private String mobile;      // : "18244444444"

    @NotEmpty
    private String password;    //: "123456"

    @NotNull
    private Integer regChannel; //  注册渠道: 1

    @NotEmpty
    private String smsCode;     //: 验证码"34567"

}
